﻿using YNTK.Common.Const;
using YNTK.Common.Entity;
using SqlSugar;

namespace YNTK.System.Entitys.Menu
{
    /// <summary>
    /// 菜单
    /// </summary>
    [SugarTable("base_menu")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class MenuEntity: CLDEntityBase
    {
        /// <summary>
        /// 父级菜单id
        /// </summary>
        [SugarColumn(ColumnName = "F_ParentId")]
        public string ParentId { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        [SugarColumn(ColumnName = "F_Title")]
        public string Title { get; set; }

        /// <summary>
        /// 菜单编码
        /// </summary>
        [SugarColumn(ColumnName = "F_Code")]
        public string Code { get; set; }

        /// <summary>
        /// 菜单类型(0.目录 1.菜单)
        /// </summary>
        [SugarColumn(ColumnName = "F_Type")]
        public int Type { get; set; }

        /// <summary>
        /// 菜单路由
        /// </summary>
        [SugarColumn(ColumnName = "F_Route")]
        public string Route { get; set; }

        /// <summary>
        /// 菜单图标
        /// </summary>
        [SugarColumn(ColumnName = "F_Icon")]
        public string Icon { get; set; }

        /// <summary>
        /// 按钮权限,多个按逗号分割
        /// </summary>
        [SugarColumn(ColumnName = "F_Authoritys")]
        public string Authoritys { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "F_Description")]
        public string Description { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        [SugarColumn(ColumnName = "F_SortCode")]
        public long? SortCode { get; set; }

    }
}
